<?php /* Smarty version 2.6.18, created on 2009-05-22 02:42:47
         compiled from default/trade_content.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'default/trade_content.html', 8, false),array('modifier', 'truncate', 'default/trade_content.html', 8, false),array('modifier', 'strip_tags', 'default/trade_content.html', 130, false),array('modifier', 'date_format', 'default/trade_content.html', 152, false),array('modifier', 'urlencode', 'default/trade_content.html', 166, false),array('modifier', 'nl2br', 'default/trade_content.html', 207, false),)), $this); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
" />
<meta name ="keywords" content="求购,供应,<?php echo $this->_tpl_vars['sitename']; ?>
,<?php echo $this->_tpl_vars['tradeInfo']['Name']; ?>
,<?php echo $this->_tpl_vars['tradeInfo']['CompanyName']; ?>
" />
<meta name="Author" content="stevenchow811@163.com" />
<meta name="generator" content="<?php echo $this->_tpl_vars['UaVersion']; ?>
" />
<meta name="description" content="产品库,<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['tradeInfo']['Description'])) ? $this->_run_mod_handler('replace', true, $_tmp, "\r\n", "") : smarty_modifier_replace($_tmp, "\r\n", "")))) ? $this->_run_mod_handler('truncate', true, $_tmp, 150) : smarty_modifier_truncate($_tmp, 150)); ?>
" /> 
<title><?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['Name'])) ? $this->_run_mod_handler('replace', true, $_tmp, "\r\n", ",") : smarty_modifier_replace($_tmp, "\r\n", ",")); ?>
<?php if ($this->_tpl_vars['tradeInfo']['TradePicture'] != ""): ?>(有图片)<?php endif; ?>&laquo;<?php echo $this->_tpl_vars['sitetitle']; ?>
</title>
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
css/offer.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
/*选项卡1*/
#Tab1{
width:460px;
margin:0px;
padding:0px;
margin:0 auto;}
/*菜单class*/
.Menubox {
width:100%;
background:url(<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/bg_div.gif);
height:28px;
line-height:28px;
}
.Menubox ul{
margin:0px;
padding:0px;
}
.Menubox li{
 float:left;
 display:block;
 cursor:pointer;
 width:114px;
 text-align:center;
 color:#949694;
 font-weight:bold;
 }
.Menubox li.hover{
 padding:0px;
 background:#fff;
 width:116px;
 border-left:1px solid #A8C29F;
 border-top:1px solid #A8C29F;
 border-right:1px solid #A8C29F;
background:url(<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/bg_li.gif);
 color:#739242;
 font-weight:bold;
 height:27px;
line-height:27px;
}
.Contentbox{
 clear:both;
 margin-top:0px;
 border:1px solid #A8C29F;
 border-top:none;
 height:181px;
 text-align: left;
 padding-top:8px;
}
-->
</style>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(name,cursel,n){
 for(i=1;i<=n;i++){
  var menu=document.getElementById(name+i);
  var con=document.getElementById("con_"+name+"_"+i);
  menu.className=i==cursel?"hover":"";
  con.style.display=i==cursel?"block":"none";
 }
}
//-->
</script>
<script language=javascript>
function getExpireStr(exp_date){
	var urodz= new Date(exp_date);
	var s="离到期";
	var now = new Date();
	var ile = urodz.getTime() - now.getTime();
	var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
	if (dni > 1)
	return (""+s+"还有"+dni +"天");
	else if (dni == 1)
	return "只有2天啦!";
	else if (dni == 0)
	return "只有1天啦!";
	else
	return "<font color=red>该信息已经过期!</font>";
}
</script>
<script src="<?php echo $this->_tpl_vars['CSS_PATH']; ?>
js/jquery.js"></script>
<script>
$(document).ready(function(){        //DOM的onload事件处理函数     
  $("#favor").click(function(){          //当按钮button被点击时的处理函数     
    postdata();                                      //button被点击时执行postdata函数     
  });     
});
function postdata(){                             //提交数据函数     
  $.ajax({                                                 //调用jquery的ajax方法     
    type: "POST",                                     //设置ajax方法提交数据的形式     
    url: "detail.php",                                      //把数据提交到ok.php     
    data: "action=favor&type_id=<?php echo $this->_tpl_vars['tradeInfo']['trade_type']; ?>
&id=<?php echo $this->_tpl_vars['tradeInfo']['TradeId']; ?>
",    //输入框writer中的值作为提交的数据     
    success: function(msg){                 //提交成功后的回调，msg变量是ok.php输出的内容。     
      alert("已经加入收藏夹");                     //如果有必要，可以把msg变量的值显示到某个DIV元素中     
    }     
  });     
}
</script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><!-- a*d position --></td>
  </tr>
</table>
<table width="760" height="30" border="0" align="center" cellPadding="0" cellSpacing=0 class="corhui">
  <tbody>
    <tr> 
      <td width=785><img height=13 src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/icon1.gif" 
      width=14> 您当前位置： <a class="link12" href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
"><?php echo $this->_tpl_vars['sitename']; ?>
</a> 
        &gt; <a class=link12 href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
offer/list.php">供求信息</a> &gt; <?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['Name'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>
 
      </td>
    </tr>
  </tbody>
</table>

<table width="760" border="0" align="center" cellpadding="1" cellspacing="1" class="linegreen">
  <tr> 
    <td height="25" colspan="2" class="corgreen03"><div align="center"><h4>【
        <?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['Name'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)); ?>

      】</h4></div></td>
  </tr>
  <tr class="corgreen02">
    <td width="50%" height="25"> 
	<div align="center" class="font14blak">基本信息:</div></td>
    <td><div align="center" class="font14blak">联系方式:</div></td>
  </tr>
  <tr> 
    <td>
	<table width="90%" height="76" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td width="29%" height="25" class="font14yellow">发布时间： </td>
          <td width="71%"><?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['PublishDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
        </tr>
        <tr> 
          <td colspan="2" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/dian.gif" height="3"></td>
        </tr>
        <tr> 
          <td height="25" class="font14yellow">有效日期： </td>
          <td><?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['ExpireDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
,<script>document.write(getExpireStr("<?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['ExpireDate'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%m/%d/%Y") : smarty_modifier_date_format($_tmp, "%m/%d/%Y")); ?>
"));</script></td>
        </tr>
        <tr> 
            <td colspan="2" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/dian.gif" height="3"></td>
        </tr>
        <tr> 
          <td height="25" class="font14yellow">所属地区： </td>
          <td><a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
offer/list.php?city=<?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['province_name'])) ? $this->_run_mod_handler('urlencode', true, $_tmp) : urlencode($_tmp)); ?>
"><?php echo $this->_tpl_vars['tradeInfo']['province_name']; ?>
</a><?php if ($this->_tpl_vars['tradeInfo']['city_name']): ?>-<a href="<?php echo $this->_tpl_vars['SiteUrl']; ?>
offer/list.php?city=<?php echo ((is_array($_tmp=$this->_tpl_vars['tradeInfo']['city_name'])) ? $this->_run_mod_handler('urlencode', true, $_tmp) : urlencode($_tmp)); ?>
"><?php echo $this->_tpl_vars['tradeInfo']['city_name']; ?>
</a><?php endif; ?></td>
        </tr>  
		<tr> 
            <td colspan="2" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/dian.gif" height="3"></td>
        </tr>
        <tr> 
          <td height="25" class="font14yellow">关键词： </td>
          <td><?php echo $this->_tpl_vars['tradeInfo']['keywords']; ?>
</td>
        </tr>
        <tr> 
            <td colspan="2" background="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
default/dian.gif" height="3"></td>
        </tr>
      </table>
      </td>
    <td class="corhui">
	<?php if ($this->_tpl_vars['IfTradeOpen'] == 1 || $this->_tpl_vars['UalinkUser']['username'] != ""): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.showcompanyinfo.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<?php else: ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.loginform.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<?php endif; ?>
	</td>
  </tr>
  <tr>
    <td height="2" colspan="2" class="corgreen03"></td>
  </tr>
  <tr> 
    <td height="25" colspan="2" class="corgreen02"> 
	<div align="center" class="font14blak">详细说明</div></td>
  </tr>
  <tr> 
    <td colspan="2">
	<table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td width="72%">
		  <div id="trade" class="box">
		  <table width="100%" border="0" cellpadding="2" cellspacing="2" style="TABLE-LAYOUT: fixed">
              <tr> 
                <td height="25" class="font14yellow">【 图片及描述 】</td>
              </tr>
              <tr> 
                <td class="font12"> 
                  <p><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['tradeInfo']['Description'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p>
				  <?php if ($this->_tpl_vars['tradeInfo']['TradePicture'] != ""): ?>
                  <div id="pic" align="center">
                  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="500" height="400">
				<param name="movie" value="<?php echo $this->_tpl_vars['SiteUrl']; ?>
media/flash/show.swf?image=<?php if ($this->_tpl_vars['tradeInfo']['TradePicture'] != ""): ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/attachment/<?php echo $this->_tpl_vars['tradeInfo']['TradePicture']; ?>
<?php else: ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/`$ThemeName`/big.jpg<?php endif; ?>&imageLink=<?php echo $this->_tpl_vars['SiteUrl']; ?>
attachment.php?source=<?php echo $this->_tpl_vars['tradeInfo']['TradePicture']; ?>
">  
				<embed src="<?php echo $this->_tpl_vars['SiteUrl']; ?>
media/flash/show.swf?image=<?php if ($this->_tpl_vars['tradeInfo']['TradePicture'] != ""): ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/attachment/<?php echo $this->_tpl_vars['tradeInfo']['TradePicture']; ?>
<?php else: ?><?php echo $this->_tpl_vars['SiteUrl']; ?>
media/`$ThemeName`/big.jpg<?php endif; ?>" width="500" height="400" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
				</object></div>
				<?php endif; ?>
				</td>
              </tr>
			  <tr>
			  <td>
			  <div align="center"><input type="submit" name="favor" id="favor" value="收藏此信息" />
			  </div>
			  </td>
			  </tr>
              <tr>
                <td>
					<div id="Tab1">
						<div class="Menubox">
						<ul>
						   <li id="one1" onClick="setTab('one',1,4)"  class="hover"><span class="font14yellow">【 参数说明 】</span></li>
<!-- 						   <li id="one2" onclick="setTab('one',2,4)" >用户评论</li>
						   <li id="one3" onclick="setTab('one',3,4)">发表评论</li>   
						   <li id="one4" onclick="setTab('one',4,4)">我要举报</li>
 -->						</ul>
						</div>
						 <div class="Contentbox">  
						   <div id="con_one_1" class="hover">
							<ul>
							<?php $_from = $this->_tpl_vars['ObjectParams']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['op'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['op']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['tparam']):
        $this->_foreach['op']['iteration']++;
?>
						   <li><?php echo $this->_tpl_vars['tparam']['title']; ?>
:<?php $this->assign('param_name', ($this->_tpl_vars['tparam']['name'])); ?><?php echo $this->_tpl_vars['tradeInfo']['TradeExtends'][$this->_tpl_vars['param_name']]; ?>
</li>
						   <?php endforeach; endif; unset($_from); ?>
						   </ul>
						   </div>
						   <div id="con_one_2" style="display:none">对该信息的评论</div>
						   <div id="con_one_3" style="display:none">请在这里填写您的评论</div>
						   <div id="con_one_4" style="display:none">如果您对该信息要举报</div> 
						 </div>
					</div>
				</td>
              </tr>
            </table>
			</div>
			</td>
			<?php if ($this->_tpl_vars['FineProducts']): ?>
			  <td width="28%" valign="top" class="corhui">
			  <!--fine products -->
			  <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.fineproducts.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			  <!--fine products:~ -->
				</td>
			<?php endif; ?>
        </tr>
      </table></td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['ThemeName'])."/element.foot.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
  </tr>
</table>
</body>
</html>